package com.pro_one.service;

import com.github.pagehelper.Page;
import com.pro_one.entity.PageResult;
import com.pro_one.entity.QueryPageBean;
import com.pro_one.pojo.Role;

import java.util.List;
import java.util.Set;

public interface RoleService {
    Set findRolesByUserId(Integer id);
    public PageResult findAllRole(QueryPageBean queryPageBean);
    public void addRole(Role role,Integer[] permissionIds,Integer[] menuIds);
    public void deleteRole(Integer id);
    public void updateRole(Role role,Integer[] permissionIds,Integer[] menuIds);
    PageResult findAllRoleByUserId(Integer page,Integer size,Integer userId);
}
